package com.joysuch.wwyt.dynamicdata.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.joysuch.wwyt.common.entity.UserDataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author jwk
 * @since 2021-11-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wwyt_base_dynamic_field_config")
@ApiModel(value="BaseDynamicFieldConfig对象", description="")
public class BaseDynamicFieldConfig extends UserDataEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "配置对应的业务类型")
    private Long bizMappingId;

    @ApiModelProperty(value = "组件类型")
    private String componentType;

    @ApiModelProperty(value = "字段名")
    private String fieldName;

    @ApiModelProperty(value = "字段标签")
    private String fieldDesc;

    @ApiModelProperty(value = "数据类型")
    private String dataType;

    @ApiModelProperty(value = "组件数据源")
    private String dataSource;

    @ApiModelProperty(value = "数据源类型:api,字典")
    private Integer dataSourceType;

    @ApiModelProperty(value = "列表展示")
    private Boolean listDisplay;

    @ApiModelProperty(value = "字段自身属性")
    private String props;

}
